﻿using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using System.Data.OleDb;
namespace DAO
{
    public class XepLoaiDAO
    {
        public static int Insert(XepLoaiDTO data)
        {
            string sql = "insert into xeploai(ten,diemchuan) values( ?, ?)";
            OleDbConnection conn = DataProvider.connDB();
            OleDbCommand cmd = new OleDbCommand(sql, conn);
            cmd.Parameters.AddWithValue("",data.Ten);
            cmd.Parameters.AddWithValue("", data.DiemChuan);
            int rs=cmd.ExecuteNonQuery();
            conn.Close();
            return rs;
        }
    }
}
